package com.frcdi.qms.equipment.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 设备有效量程对象 md_equipment_range
 *
 * @author cell
 * @date 2023-10-10
 */
@ApiModel(value = "设备有效量程对象")
public class EquipmentRange extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 有效量程id */
    private Long rangeId;

    /** 上限 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Excel(name = "上限")
    private BigDecimal maximum;

    /** 下限 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Excel(name = "下限")
    private BigDecimal minimum;

    /** 称量单位 */
    @Excel(name = "称量单位")
    private String unitName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 设备类型id */
    private Long equipmentTypeId;

    /** 设备id */
    private Long equipmentId;

    public void setRangeId(Long rangeId)
    {
        this.rangeId = rangeId;
    }

    public Long getRangeId()
    {
        return rangeId;
    }

    public BigDecimal getMaximum() {
        return maximum;
    }

    public void setMaximum(BigDecimal maximum) {
        this.maximum = maximum;
    }

    public BigDecimal getMinimum() {
        return minimum;
    }

    public void setMinimum(BigDecimal minimum) {
        this.minimum = minimum;
    }

    public void setUnitName(String unitName)
    {
        this.unitName = unitName;
    }

    public String getUnitName()
    {
        return unitName;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public Long getEquipmentTypeId() {
        return equipmentTypeId;
    }

    public void setEquipmentTypeId(Long equipmentTypeId) {
        this.equipmentTypeId = equipmentTypeId;
    }

    public Long getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(Long equipmentId) {
        this.equipmentId = equipmentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("rangeId", getRangeId())
            .append("maximum", getMaximum())
            .append("minimum", getMinimum())
            .append("unitName", getUnitName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("equipmentTypeId", getEquipmentTypeId())
            .append("equipmentId", getEquipmentId())
            .toString();
    }
}
